﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataLayerMigrations;
using System.Data.Entity;
using DataLayerMigrations.Migrations;

namespace ConsoleApplicationMigrations
{
	class Program
	{
		static void Main( string[] args )
		{
			Database.SetInitializer( new MigrateDatabaseToLatestVersion<TwitterContext, Configuration>() ); //[Essa linha pode ser substituida pelo contexts no AppConfig]
			createDataBase();
		}

		private static void createDataBase()
		{
			var context = new TwitterContext();
			context.Database.Initialize( true );
		}
	}
}
